package com.study.model.pojo;

import java.io.Serializable;
import javax.persistence.*;
import java.util.Date;


/**
 * The persistent class for the care database table.
 * 
 */
@Entity
@NamedQuery(name="Care.findAll", query="SELECT c FROM Care c")
public class Care implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="car_id")
	private int carId;

	@Column(name="car_content")
	private String carContent;

	@Temporal(TemporalType.DATE)
	@Column(name="car_date")
	private Date carDate;

	@Column(name="car_feedback")
	private String carFeedback;

	@Column(name="car_name")
	private String carName;

	@Column(name="car_remark")
	private String carRemark;

	@Column(name="is_show")
	private int isShow;

	@Column(name="lin_id")
	private int linId;
	
	

	//bi-directional many-to-one association to Customer
	@ManyToOne
	@JoinColumn(name="cus_id")
	private Customer customer;

	//bi-directional many-to-one association to Dictionary
	@ManyToOne
	@JoinColumn(name="car_type")
	private Dictionary dictionary;

	//bi-directional many-to-one association to User
	@ManyToOne
	@JoinColumn(name="user_id")
	private User user;

	public Care() {
	}

	public int getCarId() {
		return this.carId;
	}

	public void setCarId(int carId) {
		this.carId = carId;
	}

	public String getCarContent() {
		return this.carContent;
	}

	public void setCarContent(String carContent) {
		this.carContent = carContent;
	}

	public Date getCarDate() {
		return this.carDate;
	}

	public void setCarDate(Date carDate) {
		this.carDate = carDate;
	}

	public String getCarFeedback() {
		return this.carFeedback;
	}

	public void setCarFeedback(String carFeedback) {
		this.carFeedback = carFeedback;
	}

	public String getCarName() {
		return this.carName;
	}

	public void setCarName(String carName) {
		this.carName = carName;
	}

	public String getCarRemark() {
		return this.carRemark;
	}

	public void setCarRemark(String carRemark) {
		this.carRemark = carRemark;
	}

	public int getLinId() {
		return this.linId;
	}

	public void setLinId(int linId) {
		this.linId = linId;
	}

	public Customer getCustomer() {
		return this.customer;
	}

	public void setCustomer(Customer customer) {
		this.customer = customer;
	}

	public User getUser() {
		return this.user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public Dictionary getDictionary() {
		return dictionary;
	}

	public void setDictionary(Dictionary dictionary) {
		this.dictionary = dictionary;
	}

	public int getIsShow() {
		return isShow;
	}

	public void setIsShow(int isShow) {
		this.isShow = isShow;
	}

}